package com.mmall.service;

import com.github.pagehelper.PageInfo;
import com.mmall.common.ServerResponse;
import com.mmall.vo.OrderVo;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.util.Map;

/**
 * Created by chengwei on 2018/4/23.
 */
public interface IOrderService {

     ServerResponse pay( Long orderNo,Integer userId,String path);

     ServerResponse aliCallback(Map<String,String> params);

     ServerResponse queryOrderPayStatus(Integer userId,Long orderNo);

     ServerResponse createOrder(Integer userId,Integer shippingId);

     ServerResponse<String> cancel(Integer userId,Long orderNo);

     ServerResponse getOrderCartProduct(Integer userId);

     ServerResponse<OrderVo> getOrderDetail(Integer userId, Long orderNo);

     ServerResponse<PageInfo> getOrderList(Integer userId, int pageNum, int pageSize);

     ServerResponse<PageInfo> manageList(int pageNum,int pageSize);

    ServerResponse<OrderVo> manageDetail(Long orderNo);
    ServerResponse<PageInfo> manageSearch(Long orderNo,int pageNum,int pageSize);
    ServerResponse<String> manageSendGoods(Long orderNo);
}
